<div class="posts form">
<?php echo $this->Form->create('Post',array('type' => 'file'));?>
	<fieldset>
 		<legend><?php printf(__('Edit %s', true), __('Post', true)); ?></legend>
	<?php
		echo $this->Form->input('Post.id');
		echo $this->Form->input('Post.title');
		echo $this->Form->input('Post.address');
		echo $this->Form->input('Post.description');
		echo $this->Form->input('Post.user_id',array('type'=>'hidden','value'=>$this->Facebook->get_id()));
	?>
		<fieldset>
			<legend>Actual Image</legend>
			<?php 
				if(isset($this->data['Image'][0]['Thumbnail']["path_big"]))
					echo $html->image($html->image($this->data['Image'][0]['Thumbnail']["path_big"]));
				else 
					echo $html->image("no_image.gif", array('width'=>200, 'height'=>200));
			?>
		</fieldset>
		<fieldset>
			<legend>New Image</legend>
			<?php echo $this->Form->file('Image.file'); ?>
		</fieldset>

	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>
